package user

import (
	"gq_volunteer_platform/bean"
	"gq_volunteer_platform/model/config"

	"github.com/gin-gonic/gin"
)

// 客服电话 mobile
func ServiceMobile(c *gin.Context) {
	var conf config.Config
	err := conf.Get()
	if err != nil {
		bean.Log.Error(err)
		c.String(500, err.Error())
		return
	}

	c.PureJSON(200, gin.H{
		"Mobile": conf.Mobile,
	})
}
